﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../common/jsp/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>出货单详细</TITLE>
<%@ include file="../../common/jsp/config.jsp"%>
<%@ include file="../../common/jsp/backable.jsp"%>
<script type="text/javascript" language="javascript">

</script>
</HEAD>
<BODY>
<s:if test="order.status<7">
   <%@ include file="orderInfoTitle.jsp"%>
</s:if>
<s:if test="order.status==7">
    <div>
       <table width="91%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
         <tr> 
           <td align="left" width="5%"><input type="button" value="返回"  onclick="goBack()" class="input1_left" /><div id="backableDiv"></div></td>
		   <td align="left" width="55%"><strong>申请关闭，原因是: </strong><font style="color:red;"><s:property value="order.closeReason" /></font></td>
		   <td align="right" width="40%">
		     <!-- 采购需求单的来源并非是销售订单，而是生成计划单 -->
	         <!--<input onclick=javascript:window.location.href='newMaterialsRequest.action?orderId=<s:property value="order.id"/>' type="button" value="添加计划需求单" class="inputlong" /> -->
		     <s:if test="%{@com.javaeye.common.util.PermissionsHelper@checkHasPermissions(#session.userinfo, 'cancelCloseOrder.action')}">
		       <input onclick=javascript:window.location.href='cancelCloseOrder.action?orderId=<s:property value="orderId" />' type="button" value="取消关闭" class="input1" />
		     </s:if>
		     <s:if test="%{@com.javaeye.common.util.PermissionsHelper@checkHasPermissions(#session.userinfo, 'closeApplyOrder.action')}">
		       &nbsp;&nbsp;&nbsp;&nbsp;<input onclick=javascript:window.location.href='closeApplyOrder.action?orderId=<s:property value="orderId" />' type="button" value="同意关闭" class="input1" />
		     </s:if>
		   </td>
         </tr>
       </table>
    </div>
</s:if>
   <div class="tab">
	<div id="tb_" class="tb_">
	  <ul>
		<li class="hovertab" onClick="" >出货单信息</li>
		<s:if test="order.status>4 && order.status!=7">
		  <li class="normaltab" onClick=javascript:window.location.href='showOrderCheckResult.action?orderId=<s:property value="orderId"/>'>检验信息</li>
		</s:if>
	      <s:if test="order.status==20">
		<li class="normaltab" onClick=javascript:window.location.href='deliveryOrderInfo.action?orderId=<s:property value="orderId" />'>发货信息</li>
		</s:if>
	    <s:if test="order.reasons>0">
		  <li class="normaltab" onClick=javascript:window.location.href='reasonInfo.action?orderId=<s:property value="order.id" />'>异常信息</li>
		</s:if>
	  </ul>
    </div>
	<div class="dis" id="tbc_01">
     <div class="main_1">
       <table width="99%" border="0" cellpadding="10" cellspacing="1" bgcolor="#D3DEEF">
         <tr>
           <td align="left" class="Blue14" bgcolor="#FAFAFA" colspan="4">出货单信息</td>
         </tr>
         <tr>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>创建日期</strong></td>
		    <td width="30%" bgcolor="#FAFAFA"><s:date name="order.createDate" format="yyyy-MM-dd"/></td>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>客户名称</strong></td>
	        <td width="30%" bgcolor="#FAFAFA"><s:property value="order.customName"/></td>
		 </tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>订单号</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.contractNo"/></td>
	      <td bgcolor="#FAFAFA" align="right"><strong>预出货日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="order.expectOutDate" format="yyyy-MM-dd"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>出货日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="order.outDate" format="yyyy-MM-dd"/></td>
	      	      <td bgcolor="#FAFAFA" align="right"><strong>运输方式</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.logisticsType"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>到达时间</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.arriveDate"/></td>
	      <td bgcolor="#FAFAFA" align="right"></td>
	      <td bgcolor="#FAFAFA"></td>
		</tr>
      </table>
     </div>
     <div class="clear"></div>
	 <div class="main_scroll">
       <table width="1300px" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="50px" >大分类</th>
          <th width="60px" >中分类</th>
          <th width="95px" >名称</th>
          <th width="180px" >型号</th>
          <th width="180px" >其他</th>
		  <th width="50px">单位</th>
		  <th width="95px">库存数量</th>
		  <th width="95px">订单数量</th>
		  <th width="95px">发货数量</th>
		  <th width="95px">包装数量(箱)</th>
		  <th width="95px">完成时间</th>
		  <th align="left">数量修改超过5%原因描述</th>
		</tr>
		<s:iterator value="order.orderDetails" id="detail" status="st">
          <s:if test="#st.Odd">
            <tr class="odd">
          </s:if>
          <s:else>
            <tr class="even">
          </s:else>
              <td><s:property value="#detail.productRootCategory" /></td>
              <td><s:property value="#detail.productCategory" /></td>
              <td><s:property value="#detail.productName" /></td>
              <td><s:property value="#detail.productType" /></td>
              <td><s:property value="#detail.productSku" /></td>
              <td><s:property value="#detail.unit" /></td>
              <td><s:property value="#detail.acceptNumber" /></td>
              <td><s:property value="#detail.number" /></td>
              <td><s:property value="#detail.outStoreNumber" /></td>
              <td><s:property value="#detail.packageNumber" /></td>
              <td><s:date name="#detail.finishDate" format="yyyy-MM-dd"/></td>
              <td style="color:red"><s:property value="#detail.changeReason" /></td>
            </tr>
		</s:iterator>
       </table>
     </div>
    </div>
   </div>
</BODY></HTML>
